﻿
@model IEnumerable<HomeStayWebCP.Models.BusinessObject.UserInfo>
@{   
    WebGrid grid = new WebGrid(Model, rowsPerPage: 15);
}

@grid.GetHtml(
        tableStyle: "webgrid",
        headerStyle: "webgrid-header",
        footerStyle: "webgrid-footer",
        fillEmptyRows: true,
        alternatingRowStyle: "webgrid-alternating-row",
        selectedRowStyle: "webgrid-selected-row",
        rowStyle: "webgrid-row-style",
        mode: WebGridPagerModes.All,
        firstText: "<< First",
        previousText: "< Previous", nextText: "Next >",
        lastText: "Last >>",
        numericLinksCount: 10,
        columns: new[] {
        grid.Column("UserId", canSort: false),
        grid.Column("Username", canSort: false),
        grid.Column("Fullname"),
        grid.Column("Role"),
        grid.Column("Email"),
        grid.Column("Phone",
        header: "Phone Number"//,
                //style: "to-the-right"
        ),
        grid.Column("Status")
})
